<template>
  <div>
    <OrderList :orderData="orderDataList">
    </OrderList>
  </div>
</template>

<script>
  import OrderList from '../components/OrderList.vue'
  export default {
    name: 'Order',
    components: {
      OrderList
    },
    data() {
      return {
        orderDataList: [
          {
            orderId:"20211117151131236",
            hotel: '商家名称1',
            type: '待评价',
            time: '2021-11-17 15:13',
            orderDetail: [
              {
                id:'20211101',
                name: '牛肉面',
                price: 25.0,
                number: 1
              },
              {
                id:'20211102',
                name: '卤肉',
                price: 21.0,
                number: 1
              },
              {
                id:'20211103',
                name: '水煮肉片',
                price: 18.0,
                number: 1
              },
              {
                id:'20211104',
                name: '宫保鸡丁',
                price: 12.5,
                number: 2
              },
              {
                id:'20211105',
                name: '鱼香肉丝',
                price: 10.0,
                number: 1
              }]
          },
          {
            orderId:"20211117151134556",
            hotel: '商家名称2',
            type: '待评价',
            time: '2021-11-17 15:13',
            orderDetail: [
              {
                id:'20211106',
                name: '牛肉面0',
                price: 0.01,
                number: 2
              },
              {
                id:'20211107',
                name: '水煮肉片',
                price: 18,
                number: 1
              },
              {
                id:'20211108',
                name: '宫保鸡丁',
                price: 12.5,
                number: 2
              },
              {
                id:'20211109',
                name: '鱼香肉丝',
                price: 10.0,
                number: 1
              }]
          },
          {
            orderId:"20211117151134568",
            hotel: '商家名称3',
            type: '待评价',
            time: '2021-11-17 15:13',
            orderDetail: [
              {
                id:'202111010',
                name: '水煮肉片',
                price: 18.0,
                number: 1
              },
              {
                id:'202111011',
                name: '宫保鸡丁',
                price: 12.5,
                number: 2
              },
              {
                id:'202111012',
                name: '鱼香肉丝',
                price: 10.0,
                number: 1
              }]
          },
          {
            orderId:"20211117151131236",
            hotel: '商家名称1',
            type: '已完成',
            time: '2021-11-17 15:13',
            orderDetail: [
            {
                id:'20211101',
                name: '牛肉面',
                price: 25.0,
                number: 1
              },
              {
                id:'20211102',
                name: '卤肉',
                price: 21.0,
                number: 1
              },
              {
                id:'20211103',
                name: '水煮肉片',
                price: 18.0,
                number: 1
              },
              {
                id:'20211104',
                name: '宫保鸡丁',
                price: 12.5,
                number: 2
              },
              {
                id:'20211105',
                name: '鱼香肉丝',
                price: 10.0,
                number: 1
              }]
          }
        ]
      }
    },
    created() {
      console.log('##');
      console.log(JSON.stringify(this.orderDataList) )
    }
  }
</script>

<style>

</style>